import server from '@dt/server/dt'

const api = {
  sysMenuSave: server.api().post('/sa-admin/api/v1/sysMenu/save'),
  sysMenuDelete: server.api().get('/sa-admin/api/v1/sysMenu/delete'),
  sysMenuUpdate: server.api().post('/sa-admin/api/v1/sysMenu/update')
}

function sysMenuSave(info) {
  return api.sysMenuSave.fetch(info)
}

function sysMenuDelete(info) {
  return api.sysMenuDelete.fetch(info)
}

function sysMenuUpdate(info) {
  return api.sysMenuUpdate.fetch(info)
}

export default {
  sysMenuSave,
  sysMenuDelete,
  sysMenuUpdate
}
